local thbattle__meihong_chongsheng = fk.CreateSkill {

  name = "thbattle__meihong_chongsheng",

  tags = {  },

}



thbattle__meihong_chongsheng:addEffect(fk.EventPhaseStart, {
  prompt = "#thbattle__meihong_chongsheng",
  anim_type = "support",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(thbattle__meihong_chongsheng.name) and player.phase == Player.Start 
      and player:isWounded()
  end,
  on_cost = function(self, event, target, player, data)
    if player.room:askForSkillInvoke(player, thbattle__meihong_chongsheng.name) then
      local cards = player.room:askForDiscard(player, player.hp, player.hp, true, thbattle__meihong_chongsheng.name, true,
        ".|.|heart,diamond"
        , "#thbattle__meihong_chongsheng-discard:::" .. player.hp)
      if #cards > 0 then
        return true
      end
    end
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:recover({
      who = player,
      num = 1,
      skillName = thbattle__meihong_chongsheng.name
    })
  end
})

return thbattle__meihong_chongsheng